<!DOCTYPE html>
<html>
    <head>
    <% block head %>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <title><% block title %><% endblock %> - 东方团购中心</title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <link rel="shortcut icon" href="/favicon.ico">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">

    <script type='text/javascript' src='//g.alicdn.com/sj/lib/zepto/zepto.js' charset='utf-8'></script>

    <link rel="stylesheet" href="/web/static/lib/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" href="/website/static/src/css/website.css">

    <!--<link rel="stylesheet" href="//g.alicdn.com/sui-mobile/sm/0.5.0/css/sm.css">-->
    <!--<link rel="stylesheet" href="//g.alicdn.com/sui-mobile/sm/0.5.0/css/sm-extend.min.css">-->
    <!--<link rel="stylesheet" href="//g.alicdn.com/sui-mobile/sm/0.5.0/css/sm-extend.css">-->
    <link rel="stylesheet" href="/website_mshop/static/src/light7/css/light7.css">
    <link rel="stylesheet" href="/website_mshop/static/src/light7/css/light7-extend.css">
    <link rel="stylesheet" href="/website_mshop/static/src/css/mshop.css">

    <!-- Path to DebugGap Library JS-->
    <!-- // <script src="/website_mshop/static/src/js/debuggap.js" type="text/javascript"></script> -->

    <% endblock %>
    </head>

    <body>
<% block body %>
<% endblock %>

    <script>
         //msui的全局配置
        $.config = {
            autoInit: true,
            showPageLoadingIndicator: false
        }

        function GetUrlRelativePath() {
            var url = document.location.toString();
            var arrUrl = url.split("//");

            var start = arrUrl[1].indexOf("/");
            //stop省略，截取从start开始到结尾的所有字符
            var relUrl = arrUrl[1].substring(start);

            if (relUrl.indexOf("?") != -1) {
                relUrl = relUrl.split("?")[0];
            }
            return relUrl.replace('zh_CN/', '');
        }

         //防止点击工具栏按钮和当前页URL相同时重复刷新
        $(document).on("click", ".tab-item", function(e) {
            var clicked = $(this);
            if (clicked.attr('href') == GetUrlRelativePath()) {
                clicked.attr('href', '#');
            }
        });

    //     //auto config
      // localStorage.host = '192.168.1.111';
      // localStorage.port = 11111;
    </script>


    <!-- // <script src='/website_mshop/static/src/js/rgbaster.js' charset='utf-8' ></script> -->
    <!--<script type='text/javascript' src='//g.alicdn.com/sui-mobile/sm/0.5.0/js/sm.js' charset='utf-8'></script>-->
    <script type='text/javascript' src='/website_mshop/static/src/light7/js/light7.js' charset='utf-8'></script>
    <!--如果你用到了拓展包中的组件，还需要引用下面两个-->
    <script type='text/javascript' src='/website_mshop/static/src/light7/js/light7-extend.js' charset='utf-8'></script>
    <!--<script type='text/javascript' src='//g.alicdn.com/sui-mobile/sm/0.5.0/js/sm-extend.js' charset='utf-8'></script>-->
    <!-- your js -->

    <script src="//cdn.bootcss.com/avalon.js/1.5.2/avalon.js"></script>
    <!-- // <script type='text/javascript' charset='utf-8' src="//cdn.bootcss.com/avalon.js/1.5.2/avalon.modern.min.js"></script> -->
    <script type='text/javascript' src='/website_mshop/static/src/js/mshop.js' charset='utf-8'></script>
    <script type='text/javascript' src='/website_mshop/static/src/js/TouchSlide.1.1.source.js' charset='utf-8'></script>
    <!-- // <script charset="utf-8" src="//g.alicdn.com/sui-mobile/sm/0.5.0/js/sm-city-picker.min.js"></script> -->
    <script type="text/javascript" src='/website_mshop/static/src/light7/js/smConfigRawCitiesData.js' charset='utf-8'></script>
    <script type='text/javascript' src='/website_mshop/static/src/light7/js/light7-city-picker.js' charset='utf-8'></script>
    <!--<script charset="utf-8" src="//g.alicdn.com/sui-mobile/sm/0.5.0/js/sm-city-picker.min.js"></script>-->
    <!-- // <script charset="utf-8" src="/website_mshop/static/src/js/sm-city-picker.js" charset='utf-8' ></script> -->
    <!-- // <script type='text/javascript' src='/website_mshop/static/src/js/avalon.mobile.js' charset='utf-8'></script> -->
    </body>

</html>